Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display line numbers Function #32

Open
wants to merge 40 commits into
base: clang_analyzer
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d7955de
removing DoxyparseFile extractor
joenio Nov 7, 2013
592710a
The extractor doesn't declare any mangled symbol anymore
joenio Nov 8, 2013
4e85d99
Removing Analizo::Output::DOT in order to use Graph::Writer::Dot
joenio Nov 14, 2013
93b206b
Basic infrastructure to get rid of Ruby code
joenio Jun 20, 2013
e54f44d
dot-analizo.feature migrated
joenio Jun 20, 2013
ce796d4
migrated more 3 acceptance tests
joenio Jun 20, 2013
146757c
Thas is no support in Test::BDD::Cucumber
joenio Jun 29, 2013
294b17d
Migrated more 3
joenio Jun 29, 2013
90db1af
metrics-batch.feature migrated
joenio Jun 29, 2013
d7983c0
More 3 tests migrated:
joenio Jun 30, 2013
dec7ad8
Use 'no_plan' and T::B::C::TestBuilder
joenio Jul 1, 2013
d11b8d8
Use the File::LibMagic instead of the external command `file`
joenio Jul 1, 2013
74f9cf4
The last 3 tests migrated
joenio Jul 1, 2013
4ce0dfa
Remove trailing whitespace
joenio Jul 1, 2013
5187cba
All tests pass
joenio Jul 2, 2013
350a75b
Getting rid of ruby code
joenio Jul 2, 2013
4d125f2
Update MANIFEST file
joenio Jul 2, 2013
73f0186
To execute just one feature pass the file as argument in command-line…
joenio Jul 2, 2013
8635fc4
'cucumber' isn't needed anymore
joenio Jul 2, 2013
a072fb7
Refresh debian/control
joenio Jul 2, 2013
95831fb
Fixing Acceptance Tests
alexandreab Apr 14, 2014
78b49ea
Merge branch 'remove-doxyparse-file'
alexandreab Apr 15, 2014
992ee0c
Merge branch 'remove-mangle'
alexandreab Apr 15, 2014
5a664cc
Merge branch 'test-bdd-cucumber'
alexandreab Apr 15, 2014
993c746
Creation of ResultIsGarbage metric.
AlyssonR Apr 8, 2014
526dc75
Created potential insecure temporary file in call metric.
AlyssonR Apr 10, 2014
4b0be06
Fixing declare_security_metrics in Model
Apr 24, 2014
15d5a56
publish website to github.io
terceiro Apr 25, 2014
1253335
leave download/ folder alone
terceiro Apr 25, 2014
853d632
site: always adjust host on download instructions
terceiro Apr 25, 2014
914f1bc
site/site.js: replace all instance of hostname
terceiro Apr 25, 2014
ea8cbb6
INSTALL.md: convert to proper markdown
terceiro Apr 25, 2014
3c7184e
site: add CNAME file for custom domain
terceiro Apr 25, 2014
2a8b51b
rough instructions for publishing packages
terceiro Apr 29, 2014
5b72e33
Fixing ArgumentNull test
alexandreab Apr 24, 2014
4501e6e
Updating MANIFEST
alexandreab Apr 24, 2014
6a8cc85
Updating Analizo version, Makefile and changelog
alexandreab Apr 25, 2014
6ece2c5
Fixing overwrite Dot
alexandreab Apr 29, 2014
9888b53
Enabling Clang checkers
alexandreab Apr 29, 2014
c12168c
Creation of displaylinenumbers function and flag.
chaws Apr 24, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
/site/man.mk
/site/man/
/site/pod2htmd.tmp
/site/publish
*.csv
43 changes: 24 additions & 19 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
==============
= Installation
==============
# Installation

Debian package
--------------
## Debian package

Analizo is readily available as a Debian package. This package migth work with
Ubuntu as well. Installing the Debian package has the follwing advantages:
Expand All @@ -19,31 +16,39 @@ the steps must be performed as root user:
1) Create a file /etc/apt/sources.list.d/analizo.list file with the following
contents:

deb http://analizo.org/download/ ./
deb-src http://analizo.org/download/ ./
```repository
deb http://analizo.org/download/ ./
deb-src http://analizo.org/download/ ./
```

2) Add the repository signing key to your list of trusted keys:

$ wget -O - http://analizo.org/download/signing-key.asc | apt-key add -
```repository
$ wget -O - http://analizo.org/download/signing-key.asc | apt-key add -
```

3) Update your package lists:

$ apt-get update
```
$ apt-get update
```

4) Install analizo:

$ apt-get install analizo
```
$ apt-get install analizo
```

## From sources

From sources
------------
Download the analizo tarball linked from <span class='repository'><a href="http://analizo.org/download.html">the download page</a></span>,
extract it and run the following commands inside the analizo-x.y.z directory:

Download Analizo tarball from http://analizo.org/Site/Download, extract it and
run the following commands inside the analizo-x.y.z directory:
```
$ perl Makefile.PL
$ make
$ sudo make install
```

$ perl Makefile.PL
$ make
$ sudo make install

# See the HACKING file for instructions on how to install Analizo dependencies.
See the HACKING file for instructions on how to install Analizo dependencies.
You neeed to install the dependencies before installing Analizo.
201 changes: 56 additions & 145 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -22,40 +22,6 @@ debian/refresh
debian/rules
debian/source/format
development-setup.sh
features/dot-analizo.feature
features/dsm.feature
features/graph/cluster.feature
features/graph/help.feature
features/graph/input-files.feature
features/graph/modules.feature
features/graph/omit.feature
features/graph/output-file.feature
features/graph/plain.feature
features/language_support.feature
features/manpage-on-help.feature
features/metrics-batch.feature
features/metrics/abstract_classes.feature
features/metrics/change-cost.feature
features/metrics/cyclomatic_complexity.feature
features/metrics/eloc.feature
features/metrics/exclude.feature
features/metrics/global-only.feature
features/metrics/language_filter.feature
features/metrics/list.feature
features/metrics/methods_per_abstract_class.feature
features/metrics/modules_with_defined_attributes.feature
features/metrics/modules_with_defined_methods.feature
features/metrics/number-of-arguments.feature
features/metrics/number_of_methods.feature
features/metrics/output-file.feature
features/metrics/statistics_values.feature
features/metrics_history.feature
features/metrics_history_db.feature
features/module_file_mapping.feature
features/step_definitions/analizo_steps.rb
features/support/analizo_exception.rb
features/tree_evolution.feature
features/wrapper.feature
lib/Analizo.pm
lib/Analizo/Batch.pm
lib/Analizo/Batch/Directories.pm
Expand Down Expand Up @@ -83,6 +49,8 @@ lib/Analizo/Extractor.pm
lib/Analizo/Extractor/Doxyparse.pm
lib/Analizo/Extractor/DoxyparseFile.pm
lib/Analizo/Extractor/Sloccount.pm
lib/Analizo/Extractor/ClangStaticAnalyzer.pm
lib/Analizo/Extractor/ClangStaticAnalyzerTree.pm
lib/Analizo/FilenameFilter.pm
lib/Analizo/Filter/Client.pm
lib/Analizo/GlobalMetric/ChangeCost.pm
Expand All @@ -92,21 +60,42 @@ lib/Analizo/GlobalMetric/TotalEloc.pm
lib/Analizo/GlobalMetrics.pm
lib/Analizo/LanguageFilter.pm
lib/Analizo/Metric/AfferentConnections.pm
lib/Analizo/Metric/AllocatorSizeofOperandMismatch.pm
lib/Analizo/Metric/ArgumentNull.pm
lib/Analizo/Metric/AssignedUndefinedValue.pm
lib/Analizo/Metric/AverageCycloComplexity.pm
lib/Analizo/Metric/AverageMethodLinesOfCode.pm
lib/Analizo/Metric/AverageNumberOfParameters.pm
lib/Analizo/Metric/BadDeallocator.pm
lib/Analizo/Metric/BadFree.pm
lib/Analizo/Metric/CouplingBetweenObjects.pm
lib/Analizo/Metric/DeadAssignment.pm
lib/Analizo/Metric/DepthOfInheritanceTree.pm
lib/Analizo/Metric/DereferenceOfNullPointer.pm
lib/Analizo/Metric/DereferenceOfUndefinedPointer.pm
lib/Analizo/Metric/DivisionsByZero.pm
lib/Analizo/Metric/DoubleFree.pm
lib/Analizo/Metric/FunctionGetsBufferOverflow.pm
lib/Analizo/Metric/LackOfCohesionOfMethods.pm
lib/Analizo/Metric/LinesOfCode.pm
lib/Analizo/Metric/MaximumMethodLinesOfCode.pm
lib/Analizo/Metric/MemoryLeak.pm
lib/Analizo/Metric/NumberOfAttributes.pm
lib/Analizo/Metric/NumberOfChildren.pm
lib/Analizo/Metric/NumberOfMethods.pm
lib/Analizo/Metric/NumberOfPublicAttributes.pm
lib/Analizo/Metric/NumberOfPublicMethods.pm
lib/Analizo/Metric/OffsetFree.pm
lib/Analizo/Metric/OutOfBoundArrayAccess.pm
lib/Analizo/Metric/PotentialInsecureTempFileInCall.pm
lib/Analizo/Metric/ResponseForClass.pm
lib/Analizo/Metric/ResultIsGarbage.pm
lib/Analizo/Metric/ReturnOfStackVariableAddress.pm
lib/Analizo/Metric/StackAddressIntoGlobalVariable.pm
lib/Analizo/Metric/StructuralComplexity.pm
lib/Analizo/Metric/UndefinedAllocation.pm
lib/Analizo/Metric/UninitializedArgumentValue.pm
lib/Analizo/Metric/UseAfterFree.pm
lib/Analizo/Metrics.pm
lib/Analizo/Model.pm
lib/Analizo/ModuleMetric.pm
Expand Down Expand Up @@ -139,130 +128,52 @@ t/Analizo/Extractor.t
t/Analizo/Extractor/Doxyparse.t
t/Analizo/Extractor/DoxyparseFile.t
t/Analizo/Extractor/Sloccount.t
t/Analizo/Extractor/ClangStaticAnalyzer.t
t/Analizo/Extractor/ClangStaticAnalyzerTree.t
t/Analizo/FilenameFilter.t
t/Analizo/GlobalMetric/ChangeCost.t
t/Analizo/GlobalMetric/MethodsPerAbstractClass.t
t/Analizo/GlobalMetric/TotalAbstractClasses.t
t/Analizo/GlobalMetric/TotalEloc.t
t/Analizo/GlobalMetrics.t
t/Analizo/LanguageFilter.t
t/Analizo/Metric/ArgumentNull.t
t/Analizo/Metric/NumberOfChildren.t
t/Analizo/Metric/NumberOfMethods.t
t/Analizo/Metric/DivisionsByZero.t
t/Analizo/Metric/AfferentConnections.t
t/Analizo/Metric/AverageCycloComplexity.t
t/Analizo/Metric/AverageMethodLinesOfCode.t
t/Analizo/Metric/AverageNumberOfParameters.t
t/Analizo/Metric/CouplingBetweenObjects.t
t/Analizo/Metric/FunctionGetsBufferOverflow.t
t/Analizo/Metric/DepthOfInheritanceTree.t
t/Analizo/Metric/LackOfCohesionOfMethods.t
t/Analizo/Metric/LinesOfCode.t
t/Analizo/Metric/DereferenceOfNullPointer.t
t/Analizo/Metric/OutOfBoundArrayAccess.t
t/Analizo/Metric/MaximumMethodLinesOfCode.t
t/Analizo/Metric/NumberOfAttributes.t
t/Analizo/Metric/NumberOfChildren.t
t/Analizo/Metric/NumberOfMethods.t
t/Analizo/Metric/NumberOfPublicAttributes.t
t/Analizo/Metric/CouplingBetweenObjects.t
t/Analizo/Metric/NumberOfPublicMethods.t
t/Analizo/Metric/ResponseForClass.t
t/Analizo/Metric/DeadAssignment.t
t/Analizo/Metric/DoubleFree.t
t/Analizo/Metric/AverageNumberOfParameters.t
t/Analizo/Metric/PotentialInsecureTempFileInCall.t
t/Analizo/Metric/UndefinedAllocation.t
t/Analizo/Metric/StructuralComplexity.t
t/Analizo/Metric/AverageCycloComplexity.t
t/Analizo/Metric/AssignedUndefinedValue.t
t/Analizo/Metric/UseAfterFree.t
t/Analizo/Metric/AllocatorSizeofOperandMismatch.t
t/Analizo/Metric/LinesOfCode.t
t/Analizo/Metric/ResponseForClass.t
t/Analizo/Metric/NumberOfPublicAttributes.t
t/Analizo/Metric/DereferenceOfUndefinedPointerValue.t
t/Analizo/Metric/AverageMethodLinesOfCode.t
t/Analizo/Metric/MemoryLeak.t
t/Analizo/Metric/UninitializedArrgumentValue.t
t/Analizo/Metric/ResultIsGarbage.t
t/Analizo/Metric/ReturnOfStackVariableAddress.t
t/Analizo/Metric/OffsetFree.t
t/Analizo/Metric/BadDeallocator.t
t/Analizo/Metric/StackAddressIntoGlobalVariable.t
t/Analizo/Metric/BadFree.t
t/Analizo/Metric/NumberOfAttributes.t
t/Analizo/Metrics.t
t/Analizo/Model.t
t/Analizo/ModuleMetric.t
t/Analizo/ModuleMetrics.t
t/Analizo/Output/DOT.t
t/Analizo/Test.pm
t/Analizo/Test/Class.pm
t/Analizo/Test/Git.pm
t/samples/animals/cpp/Makefile
t/samples/animals/cpp/animal.h
t/samples/animals/cpp/cat.cc
t/samples/animals/cpp/cat.h
t/samples/animals/cpp/dog.cc
t/samples/animals/cpp/dog.h
t/samples/animals/cpp/main.cc
t/samples/animals/cpp/mammal.h
t/samples/animals/java/Animal.java
t/samples/animals/java/Cat.java
t/samples/animals/java/Dog.java
t/samples/animals/java/Main.java
t/samples/animals/java/Makefile
t/samples/animals/java/Mammal.java
t/samples/conditionals/c/cc1.c
t/samples/conditionals/c/cc2.c
t/samples/conditionals/c/cc3.c
t/samples/conditionals/c/cc4.c
t/samples/cyclical_graph/b.cc
t/samples/cyclical_graph/b.h
t/samples/cyclical_graph/c.cc
t/samples/cyclical_graph/c.h
t/samples/cyclical_graph/d.cc
t/samples/cyclical_graph/d.h
t/samples/cyclical_graph/e.cc
t/samples/cyclical_graph/e.h
t/samples/cyclical_graph/f.cc
t/samples/cyclical_graph/f.h
t/samples/cyclical_graph/main.cc
t/samples/evolution.tar.gz
t/samples/file_with_two_modules/cpp/Makefile
t/samples/file_with_two_modules/cpp/classes.cc
t/samples/file_with_two_modules/cpp/classes.h
t/samples/file_with_two_modules/cpp/main.cc
t/samples/foo.tar.gz
t/samples/hello_world/c/Makefile
t/samples/hello_world/c/hello_world.c
t/samples/hello_world/c/hello_world.h
t/samples/hello_world/c/main.c
t/samples/hello_world/cpp/Makefile
t/samples/hello_world/cpp/hello_world.cc
t/samples/hello_world/cpp/hello_world.h
t/samples/hello_world/cpp/main.cc
t/samples/hello_world/java/HelloWorld.java
t/samples/hello_world/java/Main.java
t/samples/hello_world/java/Makefile
t/samples/hierarchical_graph/b.cc
t/samples/hierarchical_graph/b.h
t/samples/hierarchical_graph/c.cc
t/samples/hierarchical_graph/c.h
t/samples/hierarchical_graph/d.cc
t/samples/hierarchical_graph/d.h
t/samples/hierarchical_graph/e.cc
t/samples/hierarchical_graph/e.h
t/samples/hierarchical_graph/f.cc
t/samples/hierarchical_graph/f.h
t/samples/hierarchical_graph/main.cc
t/samples/mixed/Backend.java
t/samples/mixed/UI.java
t/samples/mixed/native_backend.c
t/samples/multidir/c/Makefile
t/samples/multidir/c/lib/Makefile
t/samples/multidir/c/lib/lib.h
t/samples/multidir/c/lib/main.c
t/samples/multidir/c/src/Makefile
t/samples/multidir/c/src/main.c
t/samples/multidir/cpp/Makefile
t/samples/multidir/cpp/hello.cc
t/samples/multidir/cpp/src/hello.cc
t/samples/multidir/cpp/src/hello.h
t/samples/multidir/cpp/test/hello_test.cc
t/samples/polygons/cpp/Polygon.cpp
t/samples/polygons/java/Polygon.java
t/samples/polygons/java/Polygons.java
t/samples/polygons/java/Retangle.java
t/samples/polygons/java/Square.java
t/samples/polygons/java/Tetragon.java
t/samples/polygons/java/Triangle.java
t/samples/printer/cpp/Makefile
t/samples/printer/cpp/printer.cc
t/samples/printer/java/Printer1.java
t/samples/printer/java/Printer2.java
t/samples/sample_basic.doxyparse
t/samples/sample_basic/Makefile
t/samples/sample_basic/config.sh
t/samples/sample_basic/module1.c
t/samples/sample_basic/module2.c
t/samples/sample_basic/module2.h
t/samples/sample_basic/module3.c
t/samples/sample_basic/module3.h
t/samples/tree-evolution.tar.gz
t/samples/tree_id/1.c
t/samples/tree_id/2.c
templates/analizo-evolution-matrix.html.ep
test.pl
travis.sh
10 changes: 7 additions & 3 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@ CheckExtraDependencies(
'sloccount' => 0,
'sqlite3' => 0,
'man' => 0,
'clang-3.5' => '(>= 3.5)',
'gcc' => '(>= 4.8~)',
'g++' => '(>= 4.8~)',
);
CheckExtraDependencies(
'build',
'cucumber' => 0,
'file' => 0,
'rake' => 0,
'rspec' => 0,
'clang-3.5' => 0,
);

install_share 'share';
Expand Down Expand Up @@ -72,12 +70,18 @@ WriteMakefile(
'Class::Inspector' => 0,
'Graph::Writer::DSM' => 0.005,
'FindBin::libs' => 0,
'Graph::Writer::Dot' => 0,
},
BUILD_REQUIRES => {
'Test::Class' => 0,
'Test::Exception' => 0,
'Test::MockObject' => 0,
'Test::MockModule' => 0,
'Test::BDD::Cucumber' => 0,
'Method::Signatures' => 0,
'File::Slurp' => 0,
'File::Copy::Recursive' => 0,
'File::LibMagic' => 0,
},
test => {
TESTS => 't/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t',
Expand Down
13 changes: 13 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rough instructions for releasing and publishing packages to the site

* build the site locally if you haven't yet:
```
cd site && make && make publish
```
* make the code ready
* update VERSION in lib/Analizo.pm, commit
* build package
* copy package files (.deb, .dsc, .changes and .tar.gz) into site/publish/download
* cd site/publish/download && ./update-repository
* cd site/publish && git add . && git commmit -m 'update repository'
* cd site && make upload
14 changes: 14 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
analizo (1.18.0) unstable; urgency=low

[ Alexandre Barbosa ] [ Lucas Kanashiro ]

* New release
* Removing dependency cucumber in faver of Test::BDD:Cucumber
* Adding new extractor for security metrics:
+ 21 new security metrics
* Adding new dependencies:
+ gcc
+ clang

-- Alexandre <[email protected]> Fri, 25 Apr 2014 20:12:31 +0000

analizo (1.17.0) unstable; urgency=low

[ Antonio Terceiro ]
Expand Down
Loading